home *** CD-ROM | disk | FTP | other *** search
/ Best of Shareware / Best of PC Windows Shareware 1.0 - Wayzata Technology (7111) (1993).iso / mac / ZIPPED / DOS / GRAPHICS / POVSRC.ZIP / MACHINE.ZIP / MAC.SIT / SaveCmpPict.h < prev    next >
Text File  |  1992-04-24  |  3KB  |  78 lines

  1. /*
  2. ==============================================================================
  3. Project:    POV
  4.  
  5. File Name:    SaveCmpPict.h
  6.  
  7. Description:
  8.     Routines for saving a PICT file in QuickTime compressed format.
  9.     
  10.     This source code was written with a lot of help from some examples
  11.     off of Apple's QuickTime 1.0 Developer CD.
  12.  
  13.     Note that this source requires the as-yet non-standard header files
  14.     and glue files for QuickTime and the Standard Compression dialog.
  15.     These files will need to accompany this source until Apple rolls them
  16.     into MPW/Think.  The additional files needed are listed below:
  17.     Components.h            - MPW/Think - QuickTime Component header
  18.     ImageCompression.h        - MPW/Think - QuickTime Image Compression header
  19.     StdCompression.h        - MPW/Think - Std Compression dialog header
  20.     StdCompression.rsrc        - MPW/Think - Std Compression dialog resource
  21.     StdCompressionGlue.o    - MPW - Std Compression dialog glue routines
  22.     StdCompressionGlue.╣    - Think - Std Compression dialog glue routines
  23.  
  24. Related Files:
  25.     SaveCmpPict.h: header file for Save Compressed Pict routines
  26.     SaveCmpPict.c: main file for Save Compressed Pict routines
  27. ------------------------------------------------------------------------------
  28. Author:
  29.     Eduard [esp] Schwan
  30. ------------------------------------------------------------------------------
  31. Copyright 1992 POV-Team.
  32.     This source code is distributed exclusively with POV, and is subject to
  33.     the same distribution restrictions as the rest of the source code.
  34.  
  35. *  Copying, distribution and legal info is in the file povlegal.doc which
  36. *  should be distributed with this file. If povlegal.doc is not available
  37. *  or for more information please contact:
  38. *
  39. *       Drew Wells [POV-Team Leader] 
  40. *       CIS: 73767,1244  Internet: 73767.1244@compuserve.com
  41. *       Phone: (213) 254-4041
  42. ------------------------------------------------------------------------------
  43. Change History:
  44.     920414    [esp]    Created.
  45.     920419    [esp]    Embellished file header comments, renamed routines for consistency
  46. ==============================================================================
  47. */
  48.  
  49. /*==== Mac Toolbox Headers ====*/
  50. #include <types.h>
  51. #include <files.h>
  52. #include <memory.h>
  53. #include <qdoffscreen.h>
  54.  
  55. /*==== QuickTime compression headers ====*/
  56. #include    "ImageCompression.h"
  57. #include    "StdCompression.h"
  58.  
  59.  
  60. typedef enum {eAFI_ShrinkWholeImage, eAFI_UseCenter}  eAFI_ImagePrefs_t;
  61.  
  62.  
  63.  
  64. OSErr AppendFilePreview2PictF(FSSpec *fsFile);
  65.  
  66. OSErr AppendFinderIcons2PictF(FSSpec *fsFile,
  67.                         Rect *theOriginalPicFrame,
  68.                         eAFI_ImagePrefs_t theImagePrefs);
  69.  
  70. Boolean PromptForCompressionStyle(ComponentInstance    theSCComponent,
  71.                                 SCParams *theSCParams,
  72.                                 FSSpec *theImageFile);
  73.  
  74. OSErr CompressPictF(SCParams *theSCParams,
  75.                         FSSpec *theImageFile);
  76.  
  77.